import { createRouter, createWebHistory } from 'vue-router'
import { setupLayouts } from 'virtual:generated-layouts'
import generatedRoutes from '~pages'

export const Router = createRouter({
  history: createWebHistory(),
  routes: setupLayouts(generatedRoutes),
})

Router.addRoute({
  path: '/',
  redirect: '/home',
})
